]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix simple GTK+ deprecations
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 10 Sep 2013 21:11:16 +0000 (17:11 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 11 Sep 2013 00:43:17 +0000 (20:43 -0400)
src/shell-app.c
src/st/st-texture-cache.c

index 0218c133c8d03143619c2c03039a0b4c114c8a97..1f5017d2669a5704148aadc1adb8869989ed8a3a 100644 (file)
@@ -266,7 +266,7 @@ shell_app_create_faded_icon_cpu (StTextureCache *cache,
     return COGL_INVALID_HANDLE;
 
   pixbuf = gtk_icon_info_load_icon (info, NULL);
-  gtk_icon_info_free (info);
+  g_object_unref (info);
 
   if (pixbuf == NULL)
     return COGL_INVALID_HANDLE;
index 52f77dfe043f6fdafb6945f70331d502e6e1335c..17cb0689dd55bb7b1d7a9c848be860f1b26c8b0a 100644 (file)
@@ -272,7 +272,7 @@ texture_load_data_free (gpointer p)
 
   if (data->icon_info)
     {
-      gtk_icon_info_free (data->icon_info);
+      g_object_unref (data->icon_info);
       if (data->colors)
         st_icon_colors_unref (data->colors);
     }
@@ -956,7 +956,7 @@ load_gicon_with_colors (StTextureCache    *cache,
   if (ensure_request (cache, key, policy, &request, texture))
     {
       /* If there's an outstanding request, we've just added ourselves to it */
-      gtk_icon_info_free (info);
+      g_object_unref (info);
       g_free (key);
     }
   else